import { createApp } from 'vue';
import App from './App.vue';
import router, { setupRouter } from './router';
import { setupStore } from '@/store';

import Antd from 'ant-design-vue';
import './styles/override.less';
import { setupDirectives, setupGlobalMethods, setupCustomComponents } from '@/plugins';

const app = createApp(App);
app.use(Antd);

setupStore(app);
setupDirectives(app);
setupGlobalMethods(app);
setupCustomComponents(app);
setupRouter(app);
// 路由准备就绪后挂载APP实例
router.isReady().then(() => app.mount('#app'));
